<template>
  <div class="teamresource">
    <main-title title="队伍资源"></main-title>
    <div class="teamcircle">
      <div class="top">
        <div class="circleitem" v-for="(item, index) in data.slice(0, 3)" :key="index">
          <div class="label">{{ item.label }}</div>
          <div class="value">
            <span>{{ item.value }}</span>
            <span class="unit">个</span>
          </div>
        </div>
      </div>
      <div class="bottom">
        <div class="circleitem" v-for="(item, index) in data.slice(3)" :key="index">
          <div class="label">{{ item.label }}</div>
          <div class="value">
            <span>{{ item.value }}</span>
            <span class="unit">个</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { ref } from 'vue'
let data = ref([
  { label: '居民区', value: 16 },
  { label: '微网格', value: 74 },
  { label: '楼组', value: 118 },
  { label: '第二书记', value: 32 },
  { label: '第二微网格长', value: 130 },
  { label: '第二楼组长', value: 231 },
  { label: '报道党员', value: 14 }
])
</script>
<style scoped lang="scss">
.teamresource {
  .teamcircle {
    width: 100%;
    height: 360px;
    box-sizing: border-box;
    .circleitem {
      width: 164px;
      height: 164px;
      box-sizing: border-box;
      background: url('@/assets/images/firstpage/teamResource.png') no-repeat;
      background-size: 100% 100%;
      &:hover {
        background: url('@/assets/images/firstpage/teamResource_active.png') no-repeat;
        background-size: 100% 100%;
      }
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .label {
        font-size: 23px;
        font-weight: bold;
        color: #ffffff;
      }
      .value {
        font-size: 35px;
        font-weight: bold;
        color: #fec80d;
        .unit {
          font-size: 19px;
          font-weight: 400;
          color: #c9dfff;
          margin-left: 5px;
        }
      }
    }
    .top {
      display: flex;
      justify-content: space-between;
      padding: 10px 190px;
    }
    .bottom {
      display: flex;
      justify-content: space-around;
      padding: 0 30px;
    }
  }
}
</style>
